$(function(){
    fetch(`http://chst.vip:1234/api/getsitenav`)
    .then(body=>body.json())
    .then(res=>{
        let txt = ''
        res.result.forEach(item => {
            txt += `<a href=${item.navHref}>
                        <img src=${item.navImg}>
                        <span>${item.navTitle}</span>
                    </a>`
        })
        $('.list').html(txt)
    })
    $('.header_logo').click(function(){
        location.href = '../index.html'
    })
})